package com.example.spring.domain;


import lombok.Data;

/**
 * 
 * @TableName product_details_2023
 */
@Data
public class ProductDetails2023 {
    /**
     * 
     */
    private Integer id;

    /**
     * 
     */
    private String 产品型号;

    /**
     * 
     */
    private String 控制器序列号;

    /**
     * 
     */
    private String 配套产品;

    /**
     * 
     */
    private String 触摸屏序列号;

    /**
     * 
     */
    private String 购买日期;

    /**
     * 
     */
    private String 购买旺旺ID;

    /**
     * 
     */
    private String 客户姓名;

    /**
     * 
     */
    private String 客户电话;

    /**
     * 
     */
    private String 地址;

    /**
     * 
     */
    private String 店铺类型;

    /**
     * 
     */
    private String 备注;

    /**
     * 
     */
    private String province;

    /**
     * 
     */
    private String region;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ProductDetails2023 other = (ProductDetails2023) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.get产品型号() == null ? other.get产品型号() == null : this.get产品型号().equals(other.get产品型号()))
            && (this.get控制器序列号() == null ? other.get控制器序列号() == null : this.get控制器序列号().equals(other.get控制器序列号()))
            && (this.get配套产品() == null ? other.get配套产品() == null : this.get配套产品().equals(other.get配套产品()))
            && (this.get触摸屏序列号() == null ? other.get触摸屏序列号() == null : this.get触摸屏序列号().equals(other.get触摸屏序列号()))
            && (this.get购买日期() == null ? other.get购买日期() == null : this.get购买日期().equals(other.get购买日期()))
            && (this.get购买旺旺ID() == null ? other.get购买旺旺ID() == null : this.get购买旺旺ID().equals(other.get购买旺旺ID()))
            && (this.get客户姓名() == null ? other.get客户姓名() == null : this.get客户姓名().equals(other.get客户姓名()))
            && (this.get客户电话() == null ? other.get客户电话() == null : this.get客户电话().equals(other.get客户电话()))
            && (this.get地址() == null ? other.get地址() == null : this.get地址().equals(other.get地址()))
            && (this.get店铺类型() == null ? other.get店铺类型() == null : this.get店铺类型().equals(other.get店铺类型()))
            && (this.get备注() == null ? other.get备注() == null : this.get备注().equals(other.get备注()))
            && (this.getProvince() == null ? other.getProvince() == null : this.getProvince().equals(other.getProvince()))
            && (this.getRegion() == null ? other.getRegion() == null : this.getRegion().equals(other.getRegion()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((get产品型号() == null) ? 0 : get产品型号().hashCode());
        result = prime * result + ((get控制器序列号() == null) ? 0 : get控制器序列号().hashCode());
        result = prime * result + ((get配套产品() == null) ? 0 : get配套产品().hashCode());
        result = prime * result + ((get触摸屏序列号() == null) ? 0 : get触摸屏序列号().hashCode());
        result = prime * result + ((get购买日期() == null) ? 0 : get购买日期().hashCode());
        result = prime * result + ((get购买旺旺ID() == null) ? 0 : get购买旺旺ID().hashCode());
        result = prime * result + ((get客户姓名() == null) ? 0 : get客户姓名().hashCode());
        result = prime * result + ((get客户电话() == null) ? 0 : get客户电话().hashCode());
        result = prime * result + ((get地址() == null) ? 0 : get地址().hashCode());
        result = prime * result + ((get店铺类型() == null) ? 0 : get店铺类型().hashCode());
        result = prime * result + ((get备注() == null) ? 0 : get备注().hashCode());
        result = prime * result + ((getProvince() == null) ? 0 : getProvince().hashCode());
        result = prime * result + ((getRegion() == null) ? 0 : getRegion().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", 产品型号=").append(产品型号);
        sb.append(", 控制器序列号=").append(控制器序列号);
        sb.append(", 配套产品=").append(配套产品);
        sb.append(", 触摸屏序列号=").append(触摸屏序列号);
        sb.append(", 购买日期=").append(购买日期);
        sb.append(", 购买旺旺ID=").append(购买旺旺ID);
        sb.append(", 客户姓名=").append(客户姓名);
        sb.append(", 客户电话=").append(客户电话);
        sb.append(", 地址=").append(地址);
        sb.append(", 店铺类型=").append(店铺类型);
        sb.append(", 备注=").append(备注);
        sb.append(", province=").append(province);
        sb.append(", region=").append(region);
        sb.append("]");
        return sb.toString();
    }
}